using UnityEngine;

public class GameData
{
	public static bool isMusicOn;

	public static bool isSoundOn;

	public static bool isNotificationOn;

	public static int HeartCount;

	public static int NormalPackageCount;

	public static int AdvancePackageCount;

	public static bool[] IsUnLockMode = new bool[6];

	public static bool[] IsModeChooseTeam = new bool[6];

	public static int UserIndexInPlayOffs_KnockJ;

	public static int UserIndexInPlayOffs_KnockS;

	public static int UserIndexInPlayOffs_East;

	public static int UserIndexInPlayOffs_West;

	public static int[] PlayOffsTeam_KnockJ = new int[8];

	public static int[] PlayOffsTeam_KnockS = new int[8];

	public static int[] PlayOffsTeam_East = new int[8];

	public static int[] PlayOffsTeam_West = new int[8];

	public static int[] PlayOffsResult_KnockJ = new int[8];

	public static int[] PlayOffsResult_KnockS = new int[8];

	public static int[] PlayOffsResult_East = new int[8];

	public static int[] PlayOffsResult_West = new int[8];

	public static int[] PlayOffsLevel_KnockJ = new int[8];

	public static int[] PlayOffsLevel_KnockS = new int[8];

	public static int[] PlayOffsLevel_East = new int[8];

	public static int[] PlayOffsLevel_West = new int[8];

	public static int[] FinalsTeam = new int[2];

	public static int[] FinalsTeam_Level = new int[2];

	public static int[] FinalsTeam_Result = new int[2];

	public static int UserIndexInWorldCup;

	public static int[] WorldCupTeam = new int[8];

	public static int[] WorldCupResult = new int[8];

	public static int[] WorldCupLevel = new int[8];

	public static int[] TeamLevel = new int[32];

	public static int[] CardsCount = new int[32];

	public static int[,] CoachAdd = new int[5, 8];

	public static bool[] IsUnlockBall = new bool[9];

	public static bool[] IsUnlockClothe = new bool[13];

	public static bool[] IsUnlockAction = new bool[11];

	public static int indexOfUseingBall;

	public static int[] AchieveClaimCount = new int[30];

	public static int Achieve_Win;

	public static int Achieve_Score;

	public static int Achieve_3Point;

	public static int Achieve_Dunk;

	public static int Achieve_Pass;

	public static int Achieve_Steal;

	public static int Achieve_Block;

	public static int Achieve_Foul;

	public static int Achieve_OpenPackage;

	public static int[] Achieve_WinLeagueCup = new int[6];

	public static int Achieve_GetCoinCount;

	public static int Achieve_GetGemCount;

	public static int indexInRateD;

	public static int indexInRateC;

	public static int indexInRateB;

	public static int indexInRateA;

	public static int[] TodayCardLeft = new int[10];

	public static int CurrentDay;

	public static int CurrentMonth;

	public static bool IsGetCurrentDayBonus;

	public static bool IsFinishTutorial;

	public static int TimeLackOfHeart;

	public static int TimeOfBuyPhysical;

	public static int TimeStartGameTimeLimit;

	public static int indexOfBuyPhysical;

	public static bool IsTimeBonusWaitClaim;

	public static int indexOfTimeBonus;

	public static int TimeOfTimeBonusDay;

	public static bool IsCloseLimitedTimeOffer;

	public static bool IsAddLimitedSuccess;

	public static int TimeOfShopDay;

	public static bool IsFlurryAllTeam;

	public static int indexOfLoadingTips;

	public static bool IsFirstFinals;

	public static bool IsClickMoreGames;

	public static int ADGemCount;

	public static bool IsFirstEnterTeam;

	public static bool IsFirstEnterAction;

	public static bool IsFirstEnterClothe;

	public static bool IsFirstEnterBall;

	public static bool IsFirstEnterLeague;

	public static bool IsFirstEnterShopCard;

	public static bool IsFirstBuyNormal;

	public static bool IsFirstBuyAdvance;

	public static int CountOpenPackage;

	public static bool[,] LevelStars = new bool[40, 3];

	private static bool isLoaded = false;

	public static void load()
	{
		if (!isLoaded)
		{
			isLoaded = true;
			checkPreMode();
			load_isMusicOn();
			load_isSoundOn();
			load_isNotificationOn();
			load_HeartCount();
			load_NormalPackageCount();
			load_AdvancePackageCount();
			load_IsUnLockMode();
			load_IsModeChooseTeam();
			load_UserIndexInPlayOffs_KnockJ();
			load_UserIndexInPlayOffs_KnockS();
			load_UserIndexInPlayOffs_East();
			load_UserIndexInPlayOffs_West();
			load_PlayOffsResult_KnockJ();
			load_PlayOffsResult_KnockS();
			load_PlayOffsResult_East();
			load_PlayOffsResult_West();
			load_PlayOffsTeam_KnockJ();
			load_PlayOffsTeam_KnockS();
			load_PlayOffsTeam_East();
			load_PlayOffsTeam_West();
			load_PlayOffsLevel_KnockJ();
			load_PlayOffsLevel_KnockS();
			load_PlayOffsLevel_East();
			load_PlayOffsLevel_West();
			load_FinalsTeam();
			load_FinalsTeam_Level();
			load_FinalsTeam_Result();
			load_WorldCupTeam();
			load_WorldCupResult();
			load_WorldCupLevel();
			load_UserIndexInWorldCup();
			load_CardsCount();
			load_TeamLevel();
			load_CoachAdd();
			load_IsUnlockBall();
			load_indexOfUseingBall();
			load_IsUnlockClothe();
			load_IsUnlockAction();
			load_AchieveClaimCount();
			load_Achieve_3Point();
			load_Achieve_Block();
			load_Achieve_Dunk();
			load_Achieve_Foul();
			load_Achieve_GetCoinCount();
			load_Achieve_GetGemCount();
			load_Achieve_OpenPackage();
			load_Achieve_Pass();
			load_Achieve_Score();
			load_Achieve_Steal();
			load_Achieve_Win();
			load_Achieve_WinLeagueCup();
			load_indexInRateD();
			load_indexInRateC();
			load_indexInRateB();
			load_indexInRateA();
			load_TodayCardLeft();
			load_CurrentDay();
			load_CurrentMonth();
			load_IsGetCurrentDayBonus();
			load_IsFinishTutorial();
			load_TimeLackOfHeart();
			load_TimeOfBuyPhysical();
			load_TimeStartGameTimeLimit();
			load_indexOfBuyPhysical();
			load_IsTimeBonusWaitClaim();
			load_IsCloseLimitedTimeOffer();
			load_IsAddLimitedSuccess();
			load_indexOfTimeBonus();
			load_TimeOfShopDay();
			load_TimeOfTimeBonusDay();
			load_IsFlurryAllTeam();
			load_IsFirstFinals();
			load_IsClickMoreGames();
			load_indexOfLoadingTips();
			load_ADGemCount();
			load_IsFirstEnterTeam();
			load_IsFirstEnterAction();
			load_IsFirstEnterClothe();
			load_IsFirstEnterBall();
			load_IsFirstEnterLeague();
			load_IsFirstEnterShopCard();
			load_IsFirstBuyNormal();
			load_IsFirstBuyAdvance();
			load_CountOpenPackage();
			load_LevelStars();
			GameHelper.checkUnlockAction();
			GameHelper.checkUnlockClothe();
			GameHelper.checkUnlockBall();
		}
	}

	public static void save()
	{
		if (IsFinishTutorial)
		{
			save_isMusicOn();
			save_isSoundOn();
			save_isNotificationOn();
			save_HeartCount();
			save_NormalPackageCount();
			save_AdvancePackageCount();
			save_IsUnLockMode();
			save_IsModeChooseTeam();
			save_UserIndexInPlayOffs_KnockJ();
			save_UserIndexInPlayOffs_KnockS();
			save_UserIndexInPlayOffs_East();
			save_UserIndexInPlayOffs_West();
			save_PlayOffsResult_KnockJ();
			save_PlayOffsResult_KnockS();
			save_PlayOffsResult_East();
			save_PlayOffsResult_West();
			save_PlayOffsTeam_KnockJ();
			save_PlayOffsTeam_KnockS();
			save_PlayOffsTeam_East();
			save_PlayOffsTeam_West();
			save_PlayOffsLevel_KnockJ();
			save_PlayOffsLevel_KnockS();
			save_PlayOffsLevel_East();
			save_PlayOffsLevel_West();
			save_FinalsTeam();
			save_FinalsTeam_Level();
			save_FinalsTeam_Result();
			save_WorldCupTeam();
			save_WorldCupResult();
			save_WorldCupLevel();
			save_UserIndexInWorldCup();
			save_CardsCount();
			save_TeamLevel();
			save_CoachAdd();
			save_IsUnlockBall();
			save_indexOfUseingBall();
			save_IsUnlockClothe();
			save_IsUnlockAction();
			save_AchieveClaimCount();
			save_Achieve_3Point();
			save_Achieve_Block();
			save_Achieve_Dunk();
			save_Achieve_Foul();
			save_Achieve_GetCoinCount();
			save_Achieve_GetGemCount();
			save_Achieve_OpenPackage();
			save_Achieve_Pass();
			save_Achieve_Score();
			save_Achieve_Steal();
			save_Achieve_Win();
			save_Achieve_WinLeagueCup();
			save_indexInRateD();
			save_indexInRateC();
			save_indexInRateB();
			save_indexInRateA();
			save_TodayCardLeft();
			save_CurrentDay();
			save_CurrentMonth();
			save_IsGetCurrentDayBonus();
			save_IsFinishTutorial();
			save_TimeLackOfHeart();
			save_TimeOfBuyPhysical();
			save_TimeStartGameTimeLimit();
			save_indexOfBuyPhysical();
			save_IsTimeBonusWaitClaim();
			save_IsCloseLimitedTimeOffer();
			save_IsAddLimitedSuccess();
			save_indexOfTimeBonus();
			save_TimeOfShopDay();
			save_TimeOfTimeBonusDay();
			save_IsFlurryAllTeam();
			save_IsFirstFinals();
			save_IsClickMoreGames();
			save_indexOfLoadingTips();
			save_ADGemCount();
			save_IsFirstEnterTeam();
			save_IsFirstEnterAction();
			save_IsFirstEnterClothe();
			save_IsFirstEnterBall();
			save_IsFirstEnterLeague();
			save_IsFirstEnterShopCard();
			save_IsFirstBuyNormal();
			save_IsFirstBuyAdvance();
			save_CountOpenPackage();
			save_LevelStars();
		}
	}

	private static void checkPreMode()
	{
		if (PlayerPrefs.GetInt("IsModeChooseTeam" + 0, 0) == 1)
		{
			PlayerPrefs.SetInt("IsModeChooseTeam" + 0, 0);
			PlayerPrefs.SetInt("IsModeChooseTeam" + IsModeChooseTeam.Length, 1);
			PlayerPrefs.SetInt("UserIndexInPlayOffs_KnockJ", 0);
			UserIndexInPlayOffs_KnockJ = 0;
			if (PlayerPrefs.GetInt("SeasonTeam_Short_Win" + PlayerPrefs.GetInt("UserIndexInSeason_Short")) <= 2)
			{
				for (int i = 0; i < 8; i++)
				{
					PlayerPrefs.SetInt("PlayOffsResult_KnockJ" + i, 0);
					PlayOffsResult_KnockJ[i] = 0;
				}
			}
			else if (PlayerPrefs.GetInt("SeasonTeam_Short_Win" + PlayerPrefs.GetInt("UserIndexInSeason_Short")) <= 4)
			{
				for (int j = 0; j < 8; j++)
				{
					if (j % 2 == 0)
					{
						PlayerPrefs.SetInt("PlayOffsResult_KnockJ" + j, 1);
						PlayOffsResult_KnockJ[j] = 1;
					}
					else
					{
						PlayerPrefs.SetInt("PlayOffsResult_KnockJ" + j, 0);
						PlayOffsResult_KnockJ[j] = 0;
					}
				}
			}
			else
			{
				for (int k = 0; k < 8; k++)
				{
					if (k % 4 == 0)
					{
						PlayerPrefs.SetInt("PlayOffsResult_KnockJ" + k, 2);
						PlayOffsResult_KnockJ[k] = 2;
					}
					else if (k % 4 == 3)
					{
						PlayerPrefs.SetInt("PlayOffsResult_KnockJ" + k, 1);
						PlayOffsResult_KnockJ[k] = 1;
					}
					else
					{
						PlayerPrefs.SetInt("PlayOffsResult_KnockJ" + k, 0);
						PlayOffsResult_KnockJ[k] = 0;
					}
				}
			}
			for (int l = 0; l < 8; l++)
			{
				if (l == 0)
				{
					PlayerPrefs.SetInt("PlayOffsTeam_KnockJ" + l, PlayerPrefs.GetInt("SeasonTeam_Short" + PlayerPrefs.GetInt("UserIndexInSeason_Short")));
					PlayOffsTeam_KnockJ[l] = PlayerPrefs.GetInt("SeasonTeam_Short" + PlayerPrefs.GetInt("UserIndexInSeason_Short"));
				}
				else
				{
					PlayerPrefs.SetInt("PlayOffsTeam_KnockJ" + l, l * 2);
					PlayOffsTeam_KnockJ[l] = l * 2;
				}
			}
			for (int m = 0; m < 8; m++)
			{
				int num = Random.Range(1, 6);
				PlayerPrefs.SetInt("PlayOffsLevel_KnockJ" + m, num);
				PlayOffsLevel_KnockJ[m] = num;
			}
		}
		if (PlayerPrefs.GetInt("IsModeChooseTeam" + 1, 0) != 1)
		{
			return;
		}
		PlayerPrefs.SetInt("IsModeChooseTeam" + 1, 0);
		PlayerPrefs.SetInt("IsModeChooseTeam" + (IsModeChooseTeam.Length + 1), 1);
		PlayerPrefs.SetInt("UserIndexInPlayOffs_KnockS", 0);
		UserIndexInPlayOffs_KnockS = 0;
		if (PlayerPrefs.GetInt("SeasonTeam_Long_Win" + PlayerPrefs.GetInt("UserIndexInSeason_Long")) <= 3)
		{
			for (int n = 0; n < 8; n++)
			{
				PlayerPrefs.SetInt("PlayOffsResult_KnockS" + n, 0);
				PlayOffsResult_KnockS[n] = 0;
			}
		}
		else if (PlayerPrefs.GetInt("SeasonTeam_Long_Win" + PlayerPrefs.GetInt("UserIndexInSeason_Long")) <= 7)
		{
			for (int num2 = 0; num2 < 8; num2++)
			{
				if (num2 % 2 == 0)
				{
					PlayerPrefs.SetInt("PlayOffsResult_KnockS" + num2, 1);
					PlayOffsResult_KnockS[num2] = 1;
				}
				else
				{
					PlayerPrefs.SetInt("PlayOffsResult_KnockS" + num2, 0);
					PlayOffsResult_KnockS[num2] = 0;
				}
			}
		}
		else
		{
			for (int num3 = 0; num3 < 8; num3++)
			{
				if (num3 % 4 == 0)
				{
					PlayerPrefs.SetInt("PlayOffsResult_KnockS" + num3, 2);
					PlayOffsResult_KnockS[num3] = 2;
				}
				else if (num3 % 4 == 1)
				{
					PlayerPrefs.SetInt("PlayOffsResult_KnockS" + num3, 1);
					PlayOffsResult_KnockS[num3] = 1;
				}
				else
				{
					PlayerPrefs.SetInt("PlayOffsResult_KnockS" + num3, 0);
					PlayOffsResult_KnockS[num3] = 0;
				}
			}
		}
		for (int num4 = 0; num4 < 8; num4++)
		{
			if (num4 == 0)
			{
				PlayerPrefs.SetInt("PlayOffsTeam_KnockS" + num4, PlayerPrefs.GetInt("SeasonTeam_Long" + PlayerPrefs.GetInt("UserIndexInSeason_Long")));
				PlayOffsTeam_KnockS[num4] = PlayerPrefs.GetInt("SeasonTeam_Long" + PlayerPrefs.GetInt("UserIndexInSeason_Long"));
			}
			else
			{
				PlayerPrefs.SetInt("PlayOffsTeam_KnockS" + num4, num4 * 3);
				PlayOffsTeam_KnockS[num4] = num4 * 3;
			}
		}
		for (int num5 = 0; num5 < 8; num5++)
		{
			int num6 = Random.Range(3, 7);
			PlayerPrefs.SetInt("PlayOffsLevel_KnockS" + num5, num6);
			PlayOffsLevel_KnockS[num5] = num6;
		}
	}

	private static void load_isMusicOn()
	{
		isMusicOn = (PlayerPrefs.GetInt("isMusicOn", 1) == 1);
	}

	private static void save_isMusicOn()
	{
		PlayerPrefs.SetInt("isMusicOn", isMusicOn ? 1 : 0);
	}

	private static void load_isSoundOn()
	{
		isSoundOn = (PlayerPrefs.GetInt("isSoundOn", 1) == 1);
	}

	private static void save_isSoundOn()
	{
		PlayerPrefs.SetInt("isSoundOn", isSoundOn ? 1 : 0);
	}

	private static void load_isNotificationOn()
	{
		isNotificationOn = (PlayerPrefs.GetInt("isNotificationOn", 1) == 1);
	}

	private static void save_isNotificationOn()
	{
		PlayerPrefs.SetInt("isNotificationOn", isNotificationOn ? 1 : 0);
	}

	private static void load_HeartCount()
	{
		HeartCount = PlayerPrefs.GetInt("HeartCount", 10);
	}

	private static void save_HeartCount()
	{
		PlayerPrefs.SetInt("HeartCount", HeartCount);
	}

	private static void load_NormalPackageCount()
	{
		NormalPackageCount = PlayerPrefs.GetInt("NormalPackageCount", 0);
	}

	private static void save_NormalPackageCount()
	{
		PlayerPrefs.SetInt("NormalPackageCount", NormalPackageCount);
	}

	private static void load_AdvancePackageCount()
	{
		AdvancePackageCount = PlayerPrefs.GetInt("AdvancePackageCount", 0);
	}

	private static void save_AdvancePackageCount()
	{
		PlayerPrefs.SetInt("AdvancePackageCount", AdvancePackageCount);
	}

	private static void load_IsUnLockMode()
	{
		for (int i = 0; i < IsUnLockMode.Length; i++)
		{
			IsUnLockMode[i] = (PlayerPrefs.GetInt("IsUnLockMode" + i, 0) == 1);
		}
		IsUnLockMode[0] = true;
	}

	private static void save_IsUnLockMode()
	{
		for (int i = 0; i < IsUnLockMode.Length; i++)
		{
			PlayerPrefs.SetInt("IsUnLockMode" + i, IsUnLockMode[i] ? 1 : 0);
		}
	}

	private static void load_IsModeChooseTeam()
	{
		for (int i = 0; i < 6; i++)
		{
			if (i < 2)
			{
				IsModeChooseTeam[i] = (PlayerPrefs.GetInt("IsModeChooseTeam" + (i + IsModeChooseTeam.Length), 0) == 1);
			}
			else
			{
				IsModeChooseTeam[i] = (PlayerPrefs.GetInt("IsModeChooseTeam" + i, 0) == 1);
			}
		}
	}

	private static void save_IsModeChooseTeam()
	{
		for (int i = 0; i < 6; i++)
		{
			if (i < 2)
			{
				PlayerPrefs.SetInt("IsModeChooseTeam" + (i + IsModeChooseTeam.Length), IsModeChooseTeam[i] ? 1 : 0);
			}
			else
			{
				PlayerPrefs.SetInt("IsModeChooseTeam" + i, IsModeChooseTeam[i] ? 1 : 0);
			}
		}
	}

	private static void load_PlayOffsTeam_KnockJ()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayOffsTeam_KnockJ[i] = PlayerPrefs.GetInt("PlayOffsTeam_KnockJ" + i, 0);
		}
	}

	private static void save_PlayOffsTeam_KnockJ()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayerPrefs.SetInt("PlayOffsTeam_KnockJ" + i, PlayOffsTeam_KnockJ[i]);
		}
	}

	private static void load_PlayOffsTeam_KnockS()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayOffsTeam_KnockS[i] = PlayerPrefs.GetInt("PlayOffsTeam_KnockS" + i, 0);
		}
	}

	private static void save_PlayOffsTeam_KnockS()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayerPrefs.SetInt("PlayOffsTeam_KnockS" + i, PlayOffsTeam_KnockS[i]);
		}
	}

	private static void load_PlayOffsTeam_East()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayOffsTeam_East[i] = PlayerPrefs.GetInt("PlayOffsTeam_East" + i, -1);
		}
	}

	private static void save_PlayOffsTeam_East()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayerPrefs.SetInt("PlayOffsTeam_East" + i, PlayOffsTeam_East[i]);
		}
	}

	private static void load_PlayOffsResult_KnockJ()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayOffsResult_KnockJ[i] = PlayerPrefs.GetInt("PlayOffsResult_KnockJ" + i, 0);
		}
	}

	private static void save_PlayOffsResult_KnockJ()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayerPrefs.SetInt("PlayOffsResult_KnockJ" + i, PlayOffsResult_KnockJ[i]);
		}
	}

	private static void load_PlayOffsResult_KnockS()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayOffsResult_KnockS[i] = PlayerPrefs.GetInt("PlayOffsResult_KnockS" + i, 0);
		}
	}

	private static void save_PlayOffsResult_KnockS()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayerPrefs.SetInt("PlayOffsResult_KnockS" + i, PlayOffsResult_KnockS[i]);
		}
	}

	private static void load_PlayOffsResult_East()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayOffsResult_East[i] = PlayerPrefs.GetInt("PlayOffsResult_East" + i, 0);
		}
	}

	private static void save_PlayOffsResult_East()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayerPrefs.SetInt("PlayOffsResult_East" + i, PlayOffsResult_East[i]);
		}
	}

	private static void load_PlayOffsLevel_KnockJ()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayOffsLevel_KnockJ[i] = PlayerPrefs.GetInt("PlayOffsLevel_KnockJ" + i, 0);
		}
	}

	private static void save_PlayOffsLevel_KnockJ()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayerPrefs.SetInt("PlayOffsLevel_KnockJ" + i, PlayOffsLevel_KnockJ[i]);
		}
	}

	private static void load_PlayOffsLevel_KnockS()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayOffsLevel_KnockS[i] = PlayerPrefs.GetInt("PlayOffsLevel_KnockS" + i, 0);
		}
	}

	private static void save_PlayOffsLevel_KnockS()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayerPrefs.SetInt("PlayOffsLevel_KnockS" + i, PlayOffsLevel_KnockS[i]);
		}
	}

	private static void load_PlayOffsLevel_East()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayOffsLevel_East[i] = PlayerPrefs.GetInt("PlayOffsLevel_East" + i, 0);
		}
	}

	private static void save_PlayOffsLevel_East()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayerPrefs.SetInt("PlayOffsLevel_East" + i, PlayOffsLevel_East[i]);
		}
	}

	private static void load_PlayOffsTeam_West()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayOffsTeam_West[i] = PlayerPrefs.GetInt("PlayOffsTeam_West" + i, -1);
		}
	}

	private static void save_PlayOffsTeam_West()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayerPrefs.SetInt("PlayOffsTeam_West" + i, PlayOffsTeam_West[i]);
		}
	}

	private static void load_PlayOffsResult_West()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayOffsResult_West[i] = PlayerPrefs.GetInt("PlayOffsResult_West" + i, 0);
		}
	}

	private static void save_PlayOffsResult_West()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayerPrefs.SetInt("PlayOffsResult_West" + i, PlayOffsResult_West[i]);
		}
	}

	private static void load_PlayOffsLevel_West()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayOffsLevel_West[i] = PlayerPrefs.GetInt("PlayOffsLevel_West" + i, 0);
		}
	}

	private static void save_PlayOffsLevel_West()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayerPrefs.SetInt("PlayOffsLevel_West" + i, PlayOffsLevel_West[i]);
		}
	}

	private static void load_UserIndexInPlayOffs_KnockJ()
	{
		UserIndexInPlayOffs_KnockJ = PlayerPrefs.GetInt("UserIndexInPlayOffs_KnockJ", -1);
	}

	private static void save_UserIndexInPlayOffs_KnockJ()
	{
		PlayerPrefs.SetInt("UserIndexInPlayOffs_KnockJ", UserIndexInPlayOffs_KnockJ);
	}

	private static void load_UserIndexInPlayOffs_KnockS()
	{
		UserIndexInPlayOffs_KnockS = PlayerPrefs.GetInt("UserIndexInPlayOffs_KnockS", -1);
	}

	private static void save_UserIndexInPlayOffs_KnockS()
	{
		PlayerPrefs.SetInt("UserIndexInPlayOffs_KnockS", UserIndexInPlayOffs_KnockS);
	}

	private static void load_UserIndexInPlayOffs_East()
	{
		UserIndexInPlayOffs_East = PlayerPrefs.GetInt("UserIndexInPlayOffs_East", -1);
	}

	private static void save_UserIndexInPlayOffs_East()
	{
		PlayerPrefs.SetInt("UserIndexInPlayOffs_East", UserIndexInPlayOffs_East);
	}

	private static void load_UserIndexInPlayOffs_West()
	{
		UserIndexInPlayOffs_West = PlayerPrefs.GetInt("UserIndexInPlayOffs_West", -1);
	}

	private static void save_UserIndexInPlayOffs_West()
	{
		PlayerPrefs.SetInt("UserIndexInPlayOffs_West", UserIndexInPlayOffs_West);
	}

	private static void load_FinalsTeam()
	{
		for (int i = 0; i < FinalsTeam.Length; i++)
		{
			FinalsTeam[i] = PlayerPrefs.GetInt("FinalsTeam" + i, -1);
		}
	}

	private static void save_FinalsTeam()
	{
		for (int i = 0; i < FinalsTeam.Length; i++)
		{
			PlayerPrefs.SetInt("FinalsTeam" + i, FinalsTeam[i]);
		}
	}

	private static void load_FinalsTeam_Level()
	{
		for (int i = 0; i < FinalsTeam_Level.Length; i++)
		{
			FinalsTeam_Level[i] = PlayerPrefs.GetInt("FinalsTeam_Level" + i, -1);
		}
	}

	private static void save_FinalsTeam_Level()
	{
		for (int i = 0; i < FinalsTeam_Level.Length; i++)
		{
			PlayerPrefs.SetInt("FinalsTeam_Level" + i, FinalsTeam_Level[i]);
		}
	}

	private static void load_FinalsTeam_Result()
	{
		for (int i = 0; i < FinalsTeam_Result.Length; i++)
		{
			FinalsTeam_Result[i] = PlayerPrefs.GetInt("FinalsTeam_Result" + i, 0);
		}
	}

	private static void save_FinalsTeam_Result()
	{
		for (int i = 0; i < FinalsTeam_Result.Length; i++)
		{
			PlayerPrefs.SetInt("FinalsTeam_Result" + i, FinalsTeam_Result[i]);
		}
	}

	private static void load_CardsCount()
	{
		for (int i = 0; i < 32; i++)
		{
			CardsCount[i] = PlayerPrefs.GetInt("CardsCount" + i, 0);
		}
	}

	private static void save_CardsCount()
	{
		for (int i = 0; i < 32; i++)
		{
			PlayerPrefs.SetInt("CardsCount" + i, CardsCount[i]);
		}
	}

	private static void load_TeamLevel()
	{
		for (int i = 0; i < 32; i++)
		{
			TeamLevel[i] = PlayerPrefs.GetInt("TeamLevel" + i, 1);
		}
	}

	private static void save_TeamLevel()
	{
		for (int i = 0; i < 32; i++)
		{
			PlayerPrefs.SetInt("TeamLevel" + i, TeamLevel[i]);
		}
	}

	private static void load_WorldCupTeam()
	{
		for (int i = 0; i < 8; i++)
		{
			WorldCupTeam[i] = PlayerPrefs.GetInt("WorldCupTeam" + i, -1);
		}
	}

	private static void save_WorldCupTeam()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayerPrefs.SetInt("WorldCupTeam" + i, WorldCupTeam[i]);
		}
	}

	private static void load_WorldCupResult()
	{
		for (int i = 0; i < 8; i++)
		{
			WorldCupResult[i] = PlayerPrefs.GetInt("WorldCupResult" + i, 0);
		}
	}

	private static void save_WorldCupResult()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayerPrefs.SetInt("WorldCupResult" + i, WorldCupResult[i]);
		}
	}

	private static void load_WorldCupLevel()
	{
		for (int i = 0; i < 8; i++)
		{
			WorldCupLevel[i] = PlayerPrefs.GetInt("WorldCupLevel" + i, 0);
		}
	}

	private static void save_WorldCupLevel()
	{
		for (int i = 0; i < 8; i++)
		{
			PlayerPrefs.SetInt("WorldCupLevel" + i, WorldCupLevel[i]);
		}
	}

	private static void load_UserIndexInWorldCup()
	{
		UserIndexInWorldCup = PlayerPrefs.GetInt("UserIndexInWorldCup", -1);
	}

	private static void save_UserIndexInWorldCup()
	{
		PlayerPrefs.SetInt("UserIndexInWorldCup", UserIndexInWorldCup);
	}

	private static void load_CoachAdd()
	{
		for (int i = 0; i < 5; i++)
		{
			for (int j = 0; j < 8; j++)
			{
				CoachAdd[i, j] = PlayerPrefs.GetInt("CoachAdd" + (i * 8 + j), 0);
			}
		}
	}

	private static void save_CoachAdd()
	{
		for (int i = 0; i < 5; i++)
		{
			for (int j = 0; j < 8; j++)
			{
				PlayerPrefs.SetInt("CoachAdd" + (i * 8 + j), CoachAdd[i, j]);
			}
		}
	}

	private static void load_IsUnlockBall()
	{
		for (int i = 0; i < IsUnlockBall.Length; i++)
		{
			IsUnlockBall[i] = (PlayerPrefs.GetInt("IsUnlockBall" + i, 0) == 1);
		}
		IsUnlockBall[0] = true;
	}

	private static void save_IsUnlockBall()
	{
		for (int i = 0; i < IsUnlockBall.Length; i++)
		{
			PlayerPrefs.SetInt("IsUnlockBall" + i, IsUnlockBall[i] ? 1 : 0);
		}
	}

	private static void load_indexOfUseingBall()
	{
		indexOfUseingBall = PlayerPrefs.GetInt("indexOfUseingBall", 0);
	}

	private static void save_indexOfUseingBall()
	{
		PlayerPrefs.SetInt("indexOfUseingBall", indexOfUseingBall);
	}

	private static void load_IsUnlockClothe()
	{
		for (int i = 0; i < IsUnlockClothe.Length; i++)
		{
			IsUnlockClothe[i] = (PlayerPrefs.GetInt("IsUnlockClothe" + i, 0) == 1);
		}
	}

	private static void save_IsUnlockClothe()
	{
		for (int i = 0; i < IsUnlockClothe.Length; i++)
		{
			PlayerPrefs.SetInt("IsUnlockClothe" + i, IsUnlockClothe[i] ? 1 : 0);
		}
	}

	private static void load_IsUnlockAction()
	{
		for (int i = 0; i < IsUnlockAction.Length; i++)
		{
			IsUnlockAction[i] = (PlayerPrefs.GetInt("IsUnlockAction" + i, 0) == 1);
		}
	}

	private static void save_IsUnlockAction()
	{
		for (int i = 0; i < IsUnlockAction.Length; i++)
		{
			PlayerPrefs.SetInt("IsUnlockAction" + i, IsUnlockAction[i] ? 1 : 0);
		}
	}

	private static void load_AchieveClaimCount()
	{
		for (int i = 0; i < 30; i++)
		{
			AchieveClaimCount[i] = PlayerPrefs.GetInt("AchieveClaimCount" + i, 0);
		}
	}

	private static void save_AchieveClaimCount()
	{
		for (int i = 0; i < 30; i++)
		{
			PlayerPrefs.SetInt("AchieveClaimCount" + i, AchieveClaimCount[i]);
		}
	}

	private static void load_Achieve_Win()
	{
		Achieve_Win = PlayerPrefs.GetInt("Achieve_Win", 0);
	}

	private static void save_Achieve_Win()
	{
		PlayerPrefs.SetInt("Achieve_Win", Achieve_Win);
	}

	private static void load_Achieve_Score()
	{
		Achieve_Score = PlayerPrefs.GetInt("Achieve_Score", 0);
	}

	private static void save_Achieve_Score()
	{
		PlayerPrefs.SetInt("Achieve_Score", Achieve_Score);
	}

	private static void load_Achieve_3Point()
	{
		Achieve_3Point = PlayerPrefs.GetInt("Achieve_3Point", 0);
	}

	private static void save_Achieve_3Point()
	{
		PlayerPrefs.SetInt("Achieve_3Point", Achieve_3Point);
	}

	private static void load_Achieve_Dunk()
	{
		Achieve_Dunk = PlayerPrefs.GetInt("Achieve_Dunk", 0);
	}

	private static void save_Achieve_Dunk()
	{
		PlayerPrefs.SetInt("Achieve_Dunk", Achieve_Dunk);
	}

	private static void load_Achieve_Pass()
	{
		Achieve_Pass = PlayerPrefs.GetInt("Achieve_Pass", 0);
	}

	private static void save_Achieve_Pass()
	{
		PlayerPrefs.SetInt("Achieve_Pass", Achieve_Pass);
	}

	private static void load_Achieve_Steal()
	{
		Achieve_Steal = PlayerPrefs.GetInt("Achieve_Steal", 0);
	}

	private static void save_Achieve_Steal()
	{
		PlayerPrefs.SetInt("Achieve_Steal", Achieve_Steal);
	}

	private static void load_Achieve_Block()
	{
		Achieve_Block = PlayerPrefs.GetInt("Achieve_Block", 0);
	}

	private static void save_Achieve_Block()
	{
		PlayerPrefs.SetInt("Achieve_Block", Achieve_Block);
	}

	private static void load_Achieve_Foul()
	{
		Achieve_Foul = PlayerPrefs.GetInt("Achieve_Foul", 0);
	}

	private static void save_Achieve_Foul()
	{
		PlayerPrefs.SetInt("Achieve_Foul", Achieve_Foul);
	}

	private static void load_Achieve_OpenPackage()
	{
		Achieve_OpenPackage = PlayerPrefs.GetInt("Achieve_OpenPackage", 0);
	}

	private static void save_Achieve_OpenPackage()
	{
		PlayerPrefs.SetInt("Achieve_OpenPackage", Achieve_OpenPackage);
	}

	private static void load_Achieve_WinLeagueCup()
	{
		for (int i = 0; i < 6; i++)
		{
			Achieve_WinLeagueCup[i] = PlayerPrefs.GetInt("Achieve_WinLeagueCup" + i, 0);
		}
	}

	private static void save_Achieve_WinLeagueCup()
	{
		for (int i = 0; i < 6; i++)
		{
			PlayerPrefs.SetInt("Achieve_WinLeagueCup" + i, Achieve_WinLeagueCup[i]);
		}
	}

	private static void load_Achieve_GetCoinCount()
	{
		Achieve_GetCoinCount = PlayerPrefs.GetInt("Achieve_GetCoinCount", 0);
	}

	private static void save_Achieve_GetCoinCount()
	{
		PlayerPrefs.SetInt("Achieve_GetCoinCount", Achieve_GetCoinCount);
	}

	private static void load_Achieve_GetGemCount()
	{
		Achieve_GetGemCount = PlayerPrefs.GetInt("Achieve_GetGemCount", 0);
	}

	private static void save_Achieve_GetGemCount()
	{
		PlayerPrefs.SetInt("Achieve_GetGemCount", Achieve_GetGemCount);
	}

	private static void load_indexInRateD()
	{
		indexInRateD = PlayerPrefs.GetInt("indexInRateD", 0);
	}

	private static void save_indexInRateD()
	{
		PlayerPrefs.SetInt("indexInRateD", indexInRateD);
	}

	private static void load_indexInRateC()
	{
		indexInRateC = PlayerPrefs.GetInt("indexInRateC", 0);
	}

	private static void save_indexInRateC()
	{
		PlayerPrefs.SetInt("indexInRateC", indexInRateC);
	}

	private static void load_indexInRateB()
	{
		indexInRateB = PlayerPrefs.GetInt("indexInRateB", 0);
	}

	private static void save_indexInRateB()
	{
		PlayerPrefs.SetInt("indexInRateB", indexInRateB);
	}

	private static void load_indexInRateA()
	{
		indexInRateA = PlayerPrefs.GetInt("indexInRateA", 0);
	}

	private static void save_indexInRateA()
	{
		PlayerPrefs.SetInt("indexInRateA", indexInRateA);
	}

	private static void load_TodayCardLeft()
	{
		for (int i = 0; i < 10; i++)
		{
			TodayCardLeft[i] = PlayerPrefs.GetInt("TodayCardLeft" + i, 100);
		}
	}

	private static void save_TodayCardLeft()
	{
		for (int i = 0; i < 10; i++)
		{
			PlayerPrefs.SetInt("TodayCardLeft" + i, TodayCardLeft[i]);
		}
	}

	private static void load_CurrentDay()
	{
		CurrentDay = PlayerPrefs.GetInt("CurrentDay", 0);
	}

	private static void save_CurrentDay()
	{
		PlayerPrefs.SetInt("CurrentDay", CurrentDay);
	}

	private static void load_CurrentMonth()
	{
		CurrentMonth = PlayerPrefs.GetInt("CurrentMonth", -1);
	}

	private static void save_CurrentMonth()
	{
		PlayerPrefs.SetInt("CurrentMonth", CurrentMonth);
	}

	private static void load_IsGetCurrentDayBonus()
	{
		IsGetCurrentDayBonus = (PlayerPrefs.GetInt("IsGetCurrentDayBonus", 0) == 1);
	}

	private static void save_IsGetCurrentDayBonus()
	{
		PlayerPrefs.SetInt("IsGetCurrentDayBonus", IsGetCurrentDayBonus ? 1 : 0);
	}

	private static void load_IsFinishTutorial()
	{
		IsFinishTutorial = (PlayerPrefs.GetInt("IsFinishTutorial", 1) == 1);
	}

	private static void save_IsFinishTutorial()
	{
		PlayerPrefs.SetInt("IsFinishTutorial", IsFinishTutorial ? 1 : 1);
	}

	private static void load_TimeLackOfHeart()
	{
		TimeLackOfHeart = PlayerPrefs.GetInt("TimeLackOfHeart", 0);
	}

	private static void save_TimeLackOfHeart()
	{
		PlayerPrefs.SetInt("TimeLackOfHeart", TimeLackOfHeart);
	}

	private static void load_TimeStartGameTimeLimit()
	{
		TimeStartGameTimeLimit = PlayerPrefs.GetInt("TimeStartGameTimeLimit", 0);
	}

	private static void save_TimeStartGameTimeLimit()
	{
		PlayerPrefs.SetInt("TimeStartGameTimeLimit", TimeStartGameTimeLimit);
	}

	private static void load_TimeOfBuyPhysical()
	{
		TimeOfBuyPhysical = PlayerPrefs.GetInt("TimeOfBuyPhysical", 0);
	}

	private static void save_TimeOfBuyPhysical()
	{
		PlayerPrefs.SetInt("TimeOfBuyPhysical", TimeOfBuyPhysical);
	}

	private static void load_indexOfBuyPhysical()
	{
		indexOfBuyPhysical = PlayerPrefs.GetInt("indexOfBuyPhysical", 0);
	}

	private static void save_indexOfBuyPhysical()
	{
		PlayerPrefs.SetInt("indexOfBuyPhysical", indexOfBuyPhysical);
	}

	private static void load_IsTimeBonusWaitClaim()
	{
		IsTimeBonusWaitClaim = (PlayerPrefs.GetInt("IsTimeBonusWaitClaim", 0) == 1);
	}

	private static void save_IsTimeBonusWaitClaim()
	{
		PlayerPrefs.SetInt("IsTimeBonusWaitClaim", IsTimeBonusWaitClaim ? 1 : 0);
	}

	private static void load_IsCloseLimitedTimeOffer()
	{
		IsCloseLimitedTimeOffer = (PlayerPrefs.GetInt("IsCloseLimitedTimeOffer", 0) == 1);
	}

	private static void save_IsCloseLimitedTimeOffer()
	{
		PlayerPrefs.SetInt("IsCloseLimitedTimeOffer", IsCloseLimitedTimeOffer ? 1 : 0);
	}

	private static void load_IsAddLimitedSuccess()
	{
		IsAddLimitedSuccess = (PlayerPrefs.GetInt("IsAddLimitedSuccess", 0) == 1);
	}

	private static void save_IsAddLimitedSuccess()
	{
		PlayerPrefs.SetInt("IsAddLimitedSuccess", IsAddLimitedSuccess ? 1 : 0);
	}

	private static void load_indexOfTimeBonus()
	{
		indexOfTimeBonus = PlayerPrefs.GetInt("indexOfTimeBonus", 0);
	}

	private static void save_indexOfTimeBonus()
	{
		PlayerPrefs.SetInt("indexOfTimeBonus", indexOfTimeBonus);
	}

	private static void load_TimeOfShopDay()
	{
		TimeOfShopDay = PlayerPrefs.GetInt("TimeOfShopDay", 0);
	}

	private static void save_TimeOfShopDay()
	{
		PlayerPrefs.SetInt("TimeOfShopDay", TimeOfShopDay);
	}

	private static void load_TimeOfTimeBonusDay()
	{
		TimeOfTimeBonusDay = PlayerPrefs.GetInt("TimeOfTimeBonusDay", 0);
	}

	private static void save_TimeOfTimeBonusDay()
	{
		PlayerPrefs.SetInt("TimeOfTimeBonusDay", TimeOfTimeBonusDay);
	}

	private static void load_IsFlurryAllTeam()
	{
		IsFlurryAllTeam = (PlayerPrefs.GetInt("IsFlurryAllTeam", 0) == 1);
	}

	private static void save_IsFlurryAllTeam()
	{
		PlayerPrefs.SetInt("IsFlurryAllTeam", IsFlurryAllTeam ? 1 : 0);
	}

	private static void load_IsFirstFinals()
	{
		IsFirstFinals = (PlayerPrefs.GetInt("IsFirstFinals", 0) == 0);
	}

	private static void save_IsFirstFinals()
	{
		PlayerPrefs.SetInt("IsFirstFinals", IsFirstFinals ? 0 : 0);
	}

	private static void load_IsClickMoreGames()
	{
		IsClickMoreGames = (PlayerPrefs.GetInt("IsClickMoreGames", 0) == 1);
	}

	private static void save_IsClickMoreGames()
	{
		PlayerPrefs.SetInt("IsClickMoreGames", IsClickMoreGames ? 1 : 0);
	}

	private static void load_indexOfLoadingTips()
	{
		indexOfLoadingTips = PlayerPrefs.GetInt("indexOfLoadingTips", 0);
	}

	private static void save_indexOfLoadingTips()
	{
		PlayerPrefs.SetInt("indexOfLoadingTips", indexOfLoadingTips);
	}

	private static void load_ADGemCount()
	{
		ADGemCount = PlayerPrefs.GetInt("ADGemCount", 0);
	}

	private static void save_ADGemCount()
	{
		PlayerPrefs.SetInt("ADGemCount", ADGemCount);
	}

	private static void load_IsFirstEnterTeam()
	{
		IsFirstEnterTeam = false;
	}

	private static void save_IsFirstEnterTeam()
	{
		PlayerPrefs.SetInt("IsFirstEnterTeam",0);
	}

	private static void load_IsFirstEnterAction()
	{
		IsFirstEnterAction = false;
	}

	private static void save_IsFirstEnterAction()
	{
		PlayerPrefs.SetInt("IsFirstEnterAction", 0);
	}

	private static void load_IsFirstEnterClothe()
	{
		IsFirstEnterClothe = false;
	}

	private static void save_IsFirstEnterClothe()
	{
		PlayerPrefs.SetInt("IsFirstEnterClothe", 0);
	}

	private static void load_IsFirstEnterBall()
	{
		IsFirstEnterBall = false;
	}

	private static void save_IsFirstEnterBall()
	{
		PlayerPrefs.SetInt("IsFirstEnterBall", 0);
	}

	private static void load_IsFirstEnterLeague()
	{
		IsFirstEnterLeague = false;
	}

	private static void save_IsFirstEnterLeague()
	{
		PlayerPrefs.SetInt("IsFirstEnterLeague", 0);
	}

	private static void load_IsFirstEnterShopCard()
	{
		IsFirstEnterShopCard = false;
	}

	private static void save_IsFirstEnterShopCard()
	{
		PlayerPrefs.SetInt("IsFirstEnterShopCard",0);
	}

	private static void load_IsFirstBuyNormal()
	{
		IsFirstBuyNormal = false;
	}

	private static void save_IsFirstBuyNormal()
	{
		PlayerPrefs.SetInt("IsFirstBuyNormal", 0);
	}

	private static void load_IsFirstBuyAdvance()
	{
		IsFirstBuyAdvance = false;
	}

	private static void save_IsFirstBuyAdvance()
	{
		PlayerPrefs.SetInt("IsFirstBuyAdvance", 0);
	}

	private static void load_CountOpenPackage()
	{
		CountOpenPackage = PlayerPrefs.GetInt("CountOpenPackage", 0);
	}

	private static void save_CountOpenPackage()
	{
		PlayerPrefs.SetInt("CountOpenPackage", CountOpenPackage);
	}

	private static void load_LevelStars()
	{
		for (int i = 0; i < 40; i++)
		{
			for (int j = 0; j < 3; j++)
			{
				LevelStars[i, j] = (PlayerPrefs.GetInt("LevelStars" + (i * 3 + j), 0) == 1);
			}
		}
	}

	private static void save_LevelStars()
	{
		for (int i = 0; i < 40; i++)
		{
			for (int j = 0; j < 3; j++)
			{
				PlayerPrefs.SetInt("LevelStars" + (i * 3 + j), LevelStars[i, j] ? 1 : 0);
			}
		}
	}
}
